<?php
    $sql = "SELECT rd_value FROM rate_data WHERE rd_id=4";
    $resultMsg1 = $db->Execute($sql);
    $resultMsg1->Close();
?>
<script type="text/javascript">
    $(function() {
        $("#tabs").tabs();
    });
    
    $(document).ready(function(){
        $('.submitMsgBt').click(function(){
            $("#msg_success_msg").css('display','none');
            $("#msg_error_msg").css('display','none');
            $('.msg_submit_indicator').css('display','inline');
            $('#courseRateMsgFrm').attr('method','post');
            $('#courseRateMsgFrm').attr('target','ajaxIfrm');
            $('#courseRateMsgFrm').submit();
        });
    });
</script>

<h3 class="pageTitle">จัดการหน้า อัตราค่าเรียนคอร์สติวสอบ TOEFL, TOEIC, GMAT, IELTS, SAT</h3>

<div id="tabs" class="courseRateEdit">
    
    <ul>
        <li id="car_"><a href="#tabs-1" title="Add files">Message</a></li>
    </ul>
    <div id="tabs-1" class="courseRateMsgFrm">
        <form name="courseRateMsgFrm" id="courseRateMsgFrm" action="function/rate4.php">
            <textarea class="input large" name="editor1"><?php echo $resultMsg1->fields['rd_value']; ?></textarea>
            <br />
            <input type="hidden" name="action" value="msg" />
            <input type="button" class="button submitMsgBt" value="Save" />
            &nbsp;<img src="images/ajax-loader.gif" class="ajax_load_img msg_submit_indicator"/>
        </form>
        <div class="information canhide png_bg ajax_msg"></div>
        <div class="fail canhide png_bg ajax_msg" id="msg_error_msg"></div>
        <div class="success canhide ajax_msg" id="msg_success_msg"><p></p></div>
    </div>
    <iframe name="ajaxIfrm" class="ajaxIfrm" ></iframe>
</div>